package lyc.springcloud.admin.utils;

import java.io.Serializable;

public class PageUtil {
    private static final long serialVersionUID = 1L;
    private static int DEFAULT_PAGE_SIZE = 10;
    private int pageSize = DEFAULT_PAGE_SIZE;
    private int pageNum = 1;
    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public static void setDefaultPageSize(int pageSize) {
        DEFAULT_PAGE_SIZE = pageSize;
    }
}
